package com.gr.dmbackend.controller.dormaddmin;

import com.alibaba.fastjson.JSONObject;
import com.gr.dmbackend.service.dormaddmin.UpdateStudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
public class UpdateStudentController {

    @Autowired
    private UpdateStudentService updateStudentService;

    @PostMapping("/api/dormaddmin/update-student")
    public JSONObject updateStudent(@RequestParam  Map<String, String> data) {
        return updateStudentService.updateStudent(data);
    }

}
